﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MedicService.Domain.Print.Template;
using MedicService.Server.Factory;

namespace MedicService.Domain.Print {
    public class PrintExtract : PrintEntity {
        private PrintExtract() {}

        public PrintExtract(PrintTemplate<PrintExtract> template, Doctor doctor) {
            Init(template);
            doctor = new DoctorFactory().Load(doctor.Id);
            Replace(template, doctor);
        }
    }
}